#ifndef __THREADPOOL_H_
#define __THREADPOOL_H_

struct ThreadPool;
typedef struct ThreadPool ThreadP;

ThreadP* InitThreadPool(int max_thrd_num,int min_thrd_num,int max_queue_size);

void ThreadP_AddTask(ThreadP *p,void*(*func)(void*),void* arg);

void DestoryThreadPool(ThreadP *p);




#endif